Throughout a series of adventures, ten-year-old David "Ali Baba" Bernstein spends most of his time thinking about becoming a detective and getting a dog.